package org.edu.modules.sxjy.common.noresubmit;

import java.lang.annotation.Annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.Inherited;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
import java.util.concurrent.TimeUnit;
/**
 * @author leidq
 * @create 2022-04-08 10:02
 */
@Target({java.lang.annotation.ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
public @interface CacheLock
{
    String prefix() default "";

    int expire() default 1;

    TimeUnit timeUnit() default TimeUnit.SECONDS;

    String delimiter() default ":";
}
